package com.example.administrator.myapplication;

import android.app.Activity;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class MainActivity extends Activity {

    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        Button Start=(Button)findViewById(R.id.start);
        Button Part=(Button)findViewById(R.id.partner);
        Start.setOnClickListener(new View.OnClickListener() {

            public void onClick(View v) {
                setContentView(R.layout.main);
            }
        });
        Part.setOnClickListener(new View.OnClickListener() {
            public void onClick(View v) {
                setContentView(R.layout.partner);
            }
        });
    }
}